package gr.unipi.mscd1;

import java.util.*;

import org.snmp4j.PDU;

public class InterfaceInfo extends SnmpInfo {

	public InterfaceInfo(SimpleSnmpClient client) {
		super(client);
		initialize();
	}

	private final static ArrayList<OidInfo> OIDs = new ArrayList<OidInfo>() {

		private final static long serialVersionUID = 1L;

		{
			add(new OidInfo(OidConsts.ifIndex, false, PDU.GETNEXT, ParamType.INT, null));
			add(new OidInfo(OidConsts.ifDescr, ParamType.STRING));
			add(new OidInfo(OidConsts.ifPhysAddress, ParamType.STRING));
			add(new OidInfo(OidConsts.ifType, ParamType.INT));
			add(new OidInfo(OidConsts.ifMtu, ParamType.INT));
			add(new OidInfo(OidConsts.ifSpeed, ParamType.INT));
			add(new OidInfo(OidConsts.ifOperStatus, ParamType.INT));
			add(new OidInfo(OidConsts.ifInOctets, ParamType.LONG));
			add(new OidInfo(OidConsts.ifOutOctets, ParamType.LONG));
			add(new OidInfo(OidConsts.ifInDiscards, ParamType.LONG));
			add(new OidInfo(OidConsts.ifOutDiscards, ParamType.LONG));
		}
	};

	@Override
	protected List<OidInfo> getOids() {
		return OIDs;
	}
}
